import request from '@/utils/request'

// 查询流程的审批状态列表
export function listProcessChecked(query) {
  return request({
    url: '/Wecom/ProcessChecked/list',
    method: 'get',
    params: query
  })
}

export function listcheckpanel(query) {
  return request({
    url: '/Wecom/ProcessChecked/listpanel',
    method: 'get',
    params: query
  })
}

// 查询流程的审批状态详细
export function getProcessChecked(checkId) {
  return request({
    url: '/Wecom/ProcessChecked/' + checkId,
    method: 'get'
  })
}

// 新增流程的审批状态
export function addProcessChecked(data) {
  return request({
    url: '/Wecom/ProcessChecked',
    method: 'post',
    data: data
  })
}

// 修改流程的审批状态
export function updateProcessChecked(data) {
  return request({
    url: '/Wecom/ProcessChecked',
    method: 'put',
    data: data
  })
}

// 删除流程的审批状态
export function delProcessChecked(checkId) {
  return request({
    url: '/Wecom/ProcessChecked/' + checkId,
    method: 'delete'
  })
}
